<?php 

/**
* 首页控制器
*/
class LoginController extends Controller
{
	
	public function index()
	{
		echo "登录控制器的index方法";

		$this->display();

		// include APP_PATH.'/'.MODULE_NAME.'/View/'.CONTROLLER_NAME.'/show.html';
	}

	public function loginout(){
		echo "登录控制器的退出方法";
		$this->display();
	}


	public function checkname()
	{
		$sql = "select * from stu where name='小明'";

		$res = M()->query($sql);

		var_dump($res);
	}

	public function show (){
		echo '这是show的方法';
	}
}
